﻿using Wanda.Cms.Domain.Models;
using FluentNHibernate.Automapping.Alterations;

namespace Wanda.Cms.Mapping.Models
{
    public class SysMenuMap : IAutoMappingOverride<SysMenu>
    {
        public void Override(FluentNHibernate.Automapping.AutoMapping<SysMenu> mapping)
        {
            mapping.Table("SYS_MENU");
            mapping.Id(x => x.MenuId, "MenuId").GeneratedBy.Assigned();
        }
    }
}